home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 273_01.zip / RCOLOR.CC < prev    next >
Text File  |  1993-04-04  |  501b  |  19 lines

  1. void rcolor(int row, int col, int attr, int len)
  2. /* This routine will change the color attribute of a row of character.
  3.    row=row to change  range 0-24
  4.    col=beginning col to change    range 0-79
  5.    attr=attribute to change to
  6.    len=num of characters to change
  7. */
  8. {
  9.   extern color, mono, cga, ega, scrseg, bios;
  10.   int    x,y,orow,ocol;
  11.   if(bios) get_cur(&orow,&ocol);
  12.  
  13.     for(y=col, x=0; x<len; x++, y++) {
  14.         if(y > 79) break;
  15.         swrite_a(row,y,attr);
  16.     }
  17.   if(bios) locate(orow,ocol);
  18. }
  19.